import request from '@/utils/request.ts'



export  const GetArticleList = (params:any)=>{
    return request.get('/article',{params:params});
}

export const AddArticleList = (ArticleData:any)=>{
    return request.post("/article",ArticleData)
}


export const  EditArticle = (ArticleData:any)=>{
    return request.put("/article",ArticleData);
}

export const GetByIdArticle = (id:number) =>{
    return request.get("/article/detail?id="+id);
}

export const DeleteByIdArticle = (id:number)=>{
    return request.delete("/article?id="+id)
}